vcsm: Treat EBUSY as success rather than SIGBUS
authorpopcornmix <popcornmix@gmail.com>
Tue, 2 May 2017 15:36:05 +0000 (16:36 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 15 Feb 2018 17:37:48 +0000 (17:37 +0000)
commit54c4b04474a1a71cf36d8de7d0cb86c0e3ce40fd
tree4053ae6bb8c3672f83ab8ad22be05b64e3708ded
parent72a700c419ec2a7fa3eea8d2ea286e5a92f678e8
vcsm: Treat EBUSY as success rather than SIGBUS

Currently if two cores access the same page concurrently one will return VM_FAULT_NOPAGE
and the other VM_FAULT_SIGBUS crashing the user code.

Also report when mapping fails.

Signed-off-by: popcornmix <popcornmix@gmail.com>
drivers/char/broadcom/vc_sm/vmcs_sm.c